/*
 * DeltaCoder.h
 *
 *  Created on: Nov 7, 2010
 *      Author: lucianoml83
 */

#ifndef DELTACODER_H_
#define DELTACODER_H_

#include <iostream>
#include <string>
#include <math.h>
#include <sstream>
#include <algorithm>
#include <limits>
#include <bitset>

using namespace std;

class DeltaCoder {
private:
  int nearPot(int number);
  string eliasGammaEncode(int source);
public:
  DeltaCoder();
  string eliasDeltaEncode(int source);
  int eliasDeltaDecode(string source);
  string toBinaryString(unsigned int input);
  int toInteger(string input);
  void pruebaDelta();
  virtual ~DeltaCoder();
};

#endif /* DELTACODER_H_ */
